import math, sequtils

proc isArmstrongNumber*(input: int): bool =
  foldl($input, a + (b.ord - '0'.ord) ^ len($input), 0) == input